package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_payroll_detail database table.
 * 
 */
@Entity
@Table(name="bme_payroll_detail")
@NamedQuery(name="BmePayrollDetail.findAll", query="SELECT b FROM BmePayrollDetail b")
public class BmePayrollDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private BigDecimal amount;

	@Column(name="ANNEX_FLAG")
	private int annexFlag;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	private String mdesc;

	private BigDecimal mprice;

	private String operator;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="PAYROLL_DATE")
	private Date payrollDate;

	private BigDecimal qty;

	@Column(name="QTY_ACCEPT")
	private BigDecimal qtyAccept;

	@Column(name="QTY_IN")
	private BigDecimal qtyIn;

	
	private String remarks;

	//bi-directional many-to-one association to BmeAcception
	@ManyToOne
	@JoinColumn(name="PAY_ID")
	private BmePayroll bmePayroll;
	
	//bi-directional many-to-one association to BmeAcception
	@ManyToOne
	@JoinColumn(name="ACCEPT_ID")
	private BmeAcception bmeAcception;

	//bi-directional many-to-one association to BmeMaterial
	@ManyToOne
	@JoinColumn(name="MID")
	private BmeMaterial bmeMaterial;

	public BmePayrollDetail() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public int getAnnexFlag() {
		return this.annexFlag;
	}

	public void setAnnexFlag(int annexFlag) {
		this.annexFlag = annexFlag;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getMdesc() {
		return this.mdesc;
	}

	public void setMdesc(String mdesc) {
		this.mdesc = mdesc;
	}

	public BigDecimal getMprice() {
		return this.mprice;
	}

	public void setMprice(BigDecimal mprice) {
		this.mprice = mprice;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public Date getPayrollDate() {
		return this.payrollDate;
	}

	public void setPayrollDate(Date payrollDate) {
		this.payrollDate = payrollDate;
	}

	public BigDecimal getQty() {
		return this.qty;
	}

	public void setQty(BigDecimal qty) {
		this.qty = qty;
	}

	public BigDecimal getQtyAccept() {
		return this.qtyAccept;
	}

	public void setQtyAccept(BigDecimal qtyAccept) {
		this.qtyAccept = qtyAccept;
	}

	public BigDecimal getQtyIn() {
		return this.qtyIn;
	}

	public void setQtyIn(BigDecimal qtyIn) {
		this.qtyIn = qtyIn;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public BmeAcception getBmeAcception() {
		return this.bmeAcception;
	}

	public void setBmeAcception(BmeAcception bmeAcception) {
		this.bmeAcception = bmeAcception;
	}

	public BmeMaterial getBmeMaterial() {
		return this.bmeMaterial;
	}

	public void setBmeMaterial(BmeMaterial bmeMaterial) {
		this.bmeMaterial = bmeMaterial;
	}
	public BmePayroll getBmePayroll() {
		return this.bmePayroll;
	}

	public void setBmePayroll(BmePayroll bmePayroll) {
		this.bmePayroll = bmePayroll;
	}
}